﻿@{
    var rootCat = WebContext.Current.Web.DefaultCategory();
}
@Html.Global("RES_CONTENT")
@rootCat.GetDescendantArticles().Count()
@Html.Global("publishing", "Posts")
@rootCat.GetDescendants().Count()
@Html.Global("publishing", "Categories")
@Html.Global("Entrance")
@{ var entranceUrl = WebContext.Current.Web.IsRoot ? WebContext.Current.Web.GetFullUrl() + "/publishing/article" : rootCat.GetPermalinkUrl().ToString(); }
@if (WebContext.Current.Web.IsRoot)
{
    if (WebSite.Open().GetPage("~/publishing/article") == null)
    {
    <span>The publishing system is not enable now ,you can click the publishing home link
        to init.</span>
    }
}
else
{
    <span>Click the link below to open the publishing home.</span>
}
<a style="display: inline-block; margin-top: 5px;" href="@entranceUrl" target="_blank">
    <img class="d-icon" src="@Url.Content("~/Content/Images/permalink.gif")" alt="" />
    <span style="float: left;" title="">
        @entranceUrl</span> </a>